Humanoid.Touched.Health = (Function(Hit) = 0 if HUmanoid.MarketPlaceService.Gamepass (id) if GamePassOwned.Humanoid.Health = 100 if GamepassnotOwned.humanoid.Health = 0 If GamepassOwned.CanCollide = false GamepassNotOwned.Cancollide = true
Try this code
local vipDoor = game.Workspace:FindFirstChild("VipDoor") local MarketPlaceService = game:GetService("MarketplaceService") local id = 0000000 -- Put your VIP gamepass id here game:GetService("Players").PlayerAdded:Connect(function(player) if MarketPlaceService:UserOwnsGamePassAsync(player, id) then vipDoor.Transparency = 0.75 vipDoor.CanCollide = false else vipDoor.Transparency = 0 vipDoor.CanCollide = true end end)